<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文章添加--layui后台管理模板</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />

<script src="../../js/layui/layui.js"></script>
<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css"
	media="all" />
</head>
<body class="childrenBody">
	<div class="layui-form news_list">
		<table class="layui-table" id="order" lay-filter="table">
		</table>
	</div>

	<script type="text/javascript">
	layui.use([ 'layer' ,'table','laydate','upload'], function() {
		var $ = layui.$,table=layui.table, layer = layui.layer ,laydate = layui.laydate;
		var upload = layui.upload;
		var data=JSON.parse(sessionStorage.getItem("order"));
		table.render({
			elem : '#order',
			url : 'http://localhost:8080/Greenleaf/order/getAllOrderDetail',//数据接口
			where : {
				name : data.orderNumber
			},
			page : true, 
			limit:3,
			limits:[3,5,7,10],
			cols : [ [ //表头
			,{field : 'odId',title : '编号',sort : true}
			,{field : 'pdtName',title : '商品名称'}
			,{field : 'unit',title : '单价'}
			,{field : 'odNumeber',title : '购买数量'}
			,{field : 'odTotal',title : '小计'}
			] ],
			id : "ProductReload"
		});
		
		
	});
	</script>

</body>
</html>